import re
pattern = "\n"
string = '''asdasdasda
adasd'''
result = re.search(pattern,string)
print(result)